package com.tj.service.impl;

import com.tj.mapper.UsersMapper;
import com.tj.pojo.Users;
import com.tj.service.UsersService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UsersServiceImpl implements UsersService {
    @Resource
    private UsersMapper usersMapper;

    @Override
    public List<Users> findAllList() {
        return usersMapper.findAllList();
    }

    @Override
    public List<Users> findUsersListByName(String realName) {
        return usersMapper.findUserListByName(realName);
    }

    @Override
    public List<Users> findUsersListById(String userId) {
        return usersMapper.findUsersListById(userId);
    }

    @Override
    public int insertUsers(Users users) {
        return usersMapper.insertUsers(users);
    }

    @Override
    public int updateUsers(Users users) {
        return usersMapper.updateUsers(users);
    }

    @Override
    public int deleteUsers(Users users) {
        return usersMapper.deleteUsers(users);
    }

    public Users login(Users users){
        return usersMapper.login(users);
    }


}
